import requests
import re

url = 'http://book.zongheng.com/store.html'
respon = requests.get(url)
print(respon.status_code)
#print(response.text)
test = respon.text
#书名
sm = re.compile(r'<a href="http://book.zongheng.com/book/\d+.html" target="_blank">(.+)</a>')
res = sm.findall(test)
for i in res:
    print(i.strip())

#作者
zz = re.compile(r'<a href="http://home.zongheng.com/show/userInfo/\d+.html" target="_blank">(.+)</a>')
res = zz.findall(test)
for i in res:
    print(i.strip())

#类型
lx = re.compile(r'<a href="http://www.zongheng.com/category/\d+.html" target="_blank">(.+)</a>')
res = lx.findall(test)
for i in res:
    print(i.strip())

#更新时间
gxsj = re.compile(r'<span>[\s\S]*?;(\d\d-\d\d \d\d:\d\d)[\s\S]*?</span>')
res = gxsj.findall(test)
for i in res:
    print(i.strip())

#图片
tp = re.compile(r'<img src="(http://static.zongheng.com/upload/cover/[\s\S]+?.jpeg)"')
res = tp.findall(test)
for i in res:
    print(i.strip())